<tr class="payment-voucher">
	<td class="valign-top">
		<?php echo $form->textField($paymentVoucher, '[' . $index . ']payment_number', array('size' => 15,'tabindex' => 1)); ?>
		<?php echo $form->error($paymentVoucher, '[' . $index . ']payment_number'); ?>
	</td>
	<td class="valign-top">
		<?php echo $paymentVoucher->payee_name; ?>
		<?php echo $form->hiddenField($paymentVoucher, '[' . $index . ']payee_name'); ?>
		<?php echo $form->hiddenField($paymentVoucher, '[' . $index . ']payee_party_id'); ?>
		<?php echo $form->hiddenField($paymentVoucher, '[' . $index . ']payable_item_ids'); ?>
	</td>
	<td class="valign-top" width="30">
		<strong><?php echo $paymentVoucher->currency_code; ?></strong>
		<?php echo $form->hiddenField($paymentVoucher, '[' . $index . ']currency_code'); ?>
	</td>
	<td class="valign-top align-right" width="90">
		<strong><?php echo Yii::app()->numberFormatter->formatCurrency($paymentVoucher->amount, ''); ?></strong>
		<?php echo $form->hiddenField($paymentVoucher, '[' . $index . ']amount'); ?>
	</td>
	<td class="valign-top">
		<?php
		$form->widget('PsJuiDatePicker', array(
			'model' => $paymentVoucher,
			'attribute' => '[' . $index . ']payment_date',
			'htmlOptions' => array(
				'size' => 10,
				'tabindex' => 2
			),
			'options' => array(
				'showOn' => 'focus',
				'showButtonPanel' => false,
				'changeYear' => true,
				'dateFormat' => 'dd-mm-yy',
			),
		));
		?>
		<?php echo $form->error($paymentVoucher, '[' . $index . ']payment_date'); ?>
	</td>
	<td class="valign-top">
		<?php
		echo $form->dropDownList($paymentVoucher, '[' . $index . ']payment_method_type_code', PaymentMethodType::getListData(), array(
			'class' => 'payment_method_type_select',
			'prompt' => '[Select]',
			'tabindex' => 3
		));
		?>
		<?php echo $form->textField($paymentVoucher, '[' . $index . ']payment_method_other', array('size' => 12, 'class' => 'payment_method_type_other', 'style' => 'width: 102px; margin-top: 4px; display: none;')); ?>
		<?php echo $form->error($paymentVoucher, '[' . $index . ']payment_method_type_code'); ?>
	</td>
	<td class="valign-top">
		<?php echo $form->textField($paymentVoucher, '[' . $index . ']payment_ref_no', array('size' => 15, 'tabindex' => 4)); ?>
		<?php echo $form->error($paymentVoucher, '[' . $index . ']payment_ref_no'); ?>
	</td>
	<td class="valign-top">
		<?php echo $form->textField($paymentVoucher, '[' . $index . ']comment', array('size' => 30, 'tabindex' => 5)); ?>
		<?php echo $form->error($paymentVoucher, '[' . $index . ']comment'); ?>
	</td>
</tr>